package hcn.api.service.api.deptregistration;

import ctd.util.annotation.RpcService;
import hcn.protocol.ods.JudgeRegSourceBean;
import hcn.protocol.ods.RegSourceBean;
import hcn.protocol.ods.RegSourceFlagBean;
import hcn.protocol.ods.RegplanAndSourceBean;

import java.util.List;

public interface RegSourceInterface {

    /**
     * 获取1条院内具体排班号源
     * HCN->HIS
     *
     * @param orgId
     * @param seqId
     * @return
     */
	@RpcService
	 List<RegSourceBean> getRegSourceList(String orgId, String seqId);

    /**
     * 获取1批院内排班号源总数
     * HCN->HIS
     * @param judgeRegList
     * @return
     */
	@RpcService
	  List<JudgeRegSourceBean> getCount(List<JudgeRegSourceBean> judgeRegList) ;

	/**
	 * 获取指定挂号科室或科室内的医生是否有号源
	 * @param orgId
	 * @param deptId
	 * @param flag 0全部 1普通科室 2专家
	 * @return
	 */
	@RpcService
	List<RegSourceFlagBean> getRegSourceFlag(String orgId,String deptId,String flag);
	/**
	 * 获取医生的排班和号源信息
	 *
	 * @param orgId
	 * @param regDeptId
	 * @param localDoctorId
	 * @return
	 */
	@RpcService
	List<RegplanAndSourceBean> getRegPlanList(String orgId, String regDeptId, String localDoctorId);

	/**
	 * 根据机构科室获取医生排班和号源
	 * @param orgId
	 * @param localDeptId
	 * @param localDoctorId
	 * @return
	 */
	@RpcService
	List<RegplanAndSourceBean> getRegPlanListByDeptId(String orgId, String localDeptId, String localDoctorId);

}

